package com.ys.entity.hr;

import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TWL_StockRunning", catalog="Id")
public class TwlStockRunning extends BaseEntity<TwlStockRunning> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="StockChangeId", nameJava="stockChangeId", typeDataBase="bigint")
	private Long stockChangeId;
	@YsField(nameDataBase="StockId", nameJava="stockId", typeDataBase="bigint")
	private Long stockId;
	@YsField(nameDataBase="ChangeNum", nameJava="changeNum", typeDataBase="int")
	private Integer changeNum;
	@YsField(nameDataBase="NumLeft", nameJava="numLeft", typeDataBase="int")
	private Integer numLeft;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TwlStockRunning setId(Long id) {
		this.id = id;
		return this;
	}
	public Long getStockChangeId() {
		return stockChangeId;
	}
	public TwlStockRunning setStockChangeId(Long stockChangeId) {
		this.stockChangeId = stockChangeId;
		return this;
	}
	public Long getStockId() {
		return stockId;
	}
	public TwlStockRunning setStockId(Long stockId) {
		this.stockId = stockId;
		return this;
	}
	public Integer getChangeNum() {
		return changeNum;
	}
	public TwlStockRunning setChangeNum(Integer changeNum) {
		this.changeNum = changeNum;
		return this;
	}
	public Integer getNumLeft() {
		return numLeft;
	}
	public TwlStockRunning setNumLeft(Integer numLeft) {
		this.numLeft = numLeft;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TwlStockRunning setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TwlStockRunning setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TwlStockRunning setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TwlStockRunning twlStockRunning(
		Long stockChangeId,
		Long stockId,
		Integer changeNum,
		Integer numLeft,
		Integer status
			) {
		TwlStockRunning entity = new TwlStockRunning();
		entity.setStockChangeId(stockChangeId);
		entity.setStockId(stockId);
		entity.setChangeNum(changeNum);
		entity.setNumLeft(numLeft);
		entity.setStatus(status);
		return entity;
	}
}